package com.bms.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.bms.annotation.DataBaseReference;
import com.bms.annotation.DataBaseTable;

@DataBaseTable(tableName="t_auth_role")
public class Role extends CommonDomain implements Serializable {
	private String name;
	private String description;
	
	@DataBaseReference(tableName="t_auth_userauthority",clazz="com.bms.domain.Authority",type="java.util.list")
	private List<Authority> authorityList;
	public Role(){}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public List<Authority> getAuthorityList() {
		return authorityList;
	}
	public void setAuthorityList(List<Authority> authorityList) {
		this.authorityList = authorityList;
	}
	
}
